package org.example.heap;
/**
 * 测试静态变量存在在哪
 * 静态实体引用对应的对象始终存放在堆中
 * -XX:PrintGCDetails
 * @author youshang
 * @date 2022/03/24 13:50
 **/
public class StaticFieldTest {

    private static byte[] arr = new byte[1024 * 1024 * 100];

    public static void main(String[] args) {
        System.out.println(StaticFieldTest.arr);

        /*try {
            Thread.sleep(1000000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/

    }
}
